package com.xiaoyu.lanling.feature.chat.viewholder

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.emoji.widget.EmojiTextView
import com.xiaoyu.lanling.R
import com.xiaoyu.lanling.feature.chat.model.message.ChatMessageUnknownItem

class ChatMessageUnknownViewHolder : ChatMessageBaseViewHolder<ChatMessageUnknownItem>() {

    private var mText: EmojiTextView? = null

    override fun doCreateView(layoutInflater: LayoutInflater, parent: ViewGroup): View? {
        val view = layoutInflater.inflate(R.layout.item_chat_admin, parent, false)
        mText = view.findViewById(R.id.chat_message_admin)
        return view
    }

    override fun showData(position: Int, itemData: ChatMessageUnknownItem) {
        mText?.text = itemData.text
    }
}